package com.ms.game.invitefriend;

import com.ms.service.module.redpoint.db.TimerExecuteAsync;
import com.xpec.c4.game.cronjob.CronTaskTimer;

public class UpdateSubDistributorSettingTimer extends CronTaskTimer{

	@Override
	public void execute() throws Exception {
		TimerExecuteAsync async = new TimerExecuteAsync(InviteCodeProcessor.class, "updateSubDistributorCommSetting", new Class[] {}, new Object[] {});
		async.needUpdateSchedule = true;
		async.cronTaskTimer = this;
		async.moduleServer = moduleServer;
		async.setQueueID(11);
		moduleServer.addAsyncCommand(async);
	}
	
	public void doPreviousSchedule(){
		InviteCodeProcessor.updateSubDistributorCommSetting();
	}
}
